




class Student:
    nub = ""
    name = ""
    age = 0
    sex = ""
    height = 0
    weight = 0
    score = 0
    address = ""
    phone = ""

    def __init__(self,nub, name, age, sex,height,weight,score,address, phone):
        self.nub = nub
        self.name = name
        self.age = age
        self.sex = sex
        self.height = height
        self.weight = weight
        self.score = score
        self.address = address
        self.phone = phone
    def study(self,time):
        if time > 2:
            print(self.name,"学习了",time,"小时，真是个好学生！")
        else:
            print(self.name,"学习了",time,"小时，天天就知道打游戏！")
    def playgame(self,gamename):
        print(self.name,"想玩游戏，",gamename,"启动！！！！！！！！！！")
    def programming(self,row):
        if row > 1000:
            print(self.name,"敲了",row,"行代码，给娃累坏了~")
        else:
            print(self.name,"只敲了",row,"行代码，但他已经很努力了，继续加油！")

    def summ(self,*args):
        print(self.name,"正在计算，这些数的和是",sum(args))










